Page({
    data: {},
    onLoad: function(n) {},
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    logOut: function() {
        wx.clearStorageSync(), wx.switchTab({
            url: "../home/home"
        }), wx.navigateTo({
            url: "../login/login"
        });
    },
    updatePassword: function() {
        var n = wx.getStorageSync("userId");
        n ? wx.navigateTo({
            url: "updatePassword?userId=" + n
        }) : wx.navigateTo({
            url: "../login/login"
        });
    }
});